package io;

import java.io.*;

public class PwDemo2 {
    public static void main(String[] args) {
        try(FileOutputStream fos = new FileOutputStream("pw2.txt");
            OutputStreamWriter osw = new OutputStreamWriter(fos);
            BufferedWriter bw = new BufferedWriter(osw);
            PrintWriter pw = new PrintWriter(bw)
        ) {
            pw.println("发生的看能否");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
